#!/usr/bin/env python
# -*- coding:utf-8 -*-

# file:do_tuple.py
# author:Jackiex
# datetime:2023/4/17 9:59
# software: PyCharm

"""
this is function  description 
"""

# classmates = ('Michael', 'Bob', 'Tracy')
#
# print('classmates =', classmates)
# print('len(classmates) =', len(classmates))
# print('classmates[0] =', classmates[0])
# print('classmates[1] =', classmates[1])
# print('classmates[2] =', classmates[2])
# print('classmates[-1] =', classmates[-1])

# cannot modify tuple:
# classmates[0] = 'Adam'

tup1 = ('physics', 'chemistry', 1997, 2000)
tup2 = (1, 2, 3, 4, 5, 6, 7)
#
print("tup1[0]: ", tup1[0])
print("tup2[1:5]: ", tup2[1:5])

